package 结构化小测;

import java.util.Iterator;
import java.util.Scanner;
import java.util.TreeSet;

public class two {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();

        TreeSet<Integer> tSet = new TreeSet<Integer>();
        while (num != 0) {
            tSet.add(scan.nextInt());
            num--;
        }

        Iterator<Integer> it = tSet.iterator();
        while (it.hasNext()) {
            System.out.println(it.next()+' ');
        }
    }
        
}


